"""
# -*- coding: utf-8 -*-
# @Time    : 2023/5/24 20:17
# @Author  : 王摇摆
# @FileName: python_Bulid.py
# @Software: PyCharm
# @Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
"""

'''
ANN实现构建和查询'''
from ANN.Data import test, k, trains
from ANN.Model_Manual import annoytrees
import numpy as np

at = annoytrees(trains, 20)
nearests, distances = at.query(test, k)
print("Indexes: ", np.array(nearests))
print("Distances: ", np.array(distances))
